Optimal. Leaf size=36 \[ -\frac{\tan (e+f x) (a \sec (e+f x)+a)}{3 f (c-c \sec (e+f x))^2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0502279, antiderivative size = 36, normalized size of antiderivative = 1., number of steps used = 1, number of rules used = 1, integrand size = 30, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.033, Rules used = {3950} \[ -\frac{\tan (e+f x) (a \sec (e+f x)+a)}{3 f (c-c \sec (e+f x))^2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3950
Rubi steps
\begin{align*} \int \frac{\sec (e+f x) (a+a \sec (e+f x))}{(c-c \sec (e+f x))^2} \, dx &=-\frac{(a+a \sec (e+f x)) \tan (e+f x)}{3 f (c-c \sec (e+f x))^2}\\ \end{align*}
Mathematica [A] time = 0.263198, size = 50, normalized size = 1.39 \[ \frac{a \csc \left (\frac{e}{2}\right ) \left (\sin \left (e+\frac{3 f x}{2}\right )-3 \sin \left (e+\frac{f x}{2}\right )\right ) \csc ^3\left (\frac{1}{2} (e+f x)\right )}{12 c^2 f} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.07, size = 21, normalized size = 0.6 \begin{align*} -{\frac{a}{3\,f{c}^{2}} \left ( \tan \left ({\frac{fx}{2}}+{\frac{e}{2}} \right ) \right ) ^{-3}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 0.974534, size = 131, normalized size = 3.64 \begin{align*} -\frac{\frac{a{\left (\frac{3 \, \sin \left (f x + e\right )^{2}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{2}} + 1\right )}{\left (\cos \left (f x + e\right ) + 1\right )}^{3}}{c^{2} \sin \left (f x + e\right )^{3}} - \frac{a{\left (\frac{3 \, \sin \left (f x + e\right )^{2}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{2}} - 1\right )}{\left (\cos \left (f x + e\right ) + 1\right )}^{3}}{c^{2} \sin \left (f x + e\right )^{3}}}{6 \, f} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 0.434553, size = 123, normalized size = 3.42 \begin{align*} \frac{a \cos \left (f x + e\right )^{2} + 2 \, a \cos \left (f x + e\right ) + a}{3 \,{\left (c^{2} f \cos \left (f x + e\right ) - c^{2} f\right )} \sin \left (f x + e\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \frac{a \left (\int \frac{\sec{\left (e + f x \right )}}{\sec ^{2}{\left (e + f x \right )} - 2 \sec{\left (e + f x \right )} + 1}\, dx + \int \frac{\sec ^{2}{\left (e + f x \right )}}{\sec ^{2}{\left (e + f x \right )} - 2 \sec{\left (e + f x \right )} + 1}\, dx\right )}{c^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.32167, size = 28, normalized size = 0.78 \begin{align*} -\frac{a}{3 \, c^{2} f \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )^{3}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]